package com.art.sunflower.service;

import com.art.sunflower.exception.NullNewsException;
import com.art.sunflower.pojo.News;
import com.art.sunflower.util.MyPageInfo;

import java.util.Map;

public interface NewsService {
    int deleteById(int id);

    MyPageInfo findAllNews(Integer pageSize, Integer pageNo) throws NullNewsException;

    int addNews(News news);

    int updateNewsById(News news);

    Map<String, String> selectById(int id);


}
